package com.doyens.client.impl;

import com.doyens.client.UserClient;
import com.doyens.pojo.User;
import org.springframework.stereotype.Component;

@Component
public class UserClientFallback implements UserClient {
    @Override
    public User queryUserById(Long id) {
        User user = new User();
        user.setUserName("服务器繁忙，请稍后再试");
        return user;
    }
}
